/**
 * Created by ys on 2018/3/2.
 */
//1.最快捷的求数组最大值
    var arr1 = [3,455,3,5,6];
    Math.max(...arr1);
//2.更短的数组去重写法
    var arr2 =[3,3,5,6,3];
    [...new Set(arr2)];
//3.快速的让一个数组乱序
    var arr3 =[1,2,3,4,5,6,7];
    arr3.sort(function(){
        return Math.random()-0.5;
    });